
package com.zhitan.ems.alarm.wrapper;
import com.zhitan.ems.alarm.vo.AlarmRulesVO;
import com.zhitan.ems.alarm.entity.AlarmRulesEntity;
import lombok.AllArgsConstructor;
import com.zhitan.ems.common.extra.utils.BeanUtil;
import com.zhitan.ems.framework.core.mp.base.BaseEntityWrapper;
  /**
 * 报警规则配置表 包装类,返回视图层所需的字段
 * @author zhitan
 * 
 * @date 2025-09-26 21:25:31
 */
public class AlarmRulesWrapper extends BaseEntityWrapper<AlarmRulesEntity, AlarmRulesVO>  {
    public static AlarmRulesWrapper build() {
        return new AlarmRulesWrapper();
    }
	@Override
	public AlarmRulesVO entityVO(AlarmRulesEntity alarmRules) {
		if(alarmRules==null) {
			return null;
		}
		AlarmRulesVO alarmRulesVO = BeanUtil.copy(alarmRules, AlarmRulesVO.class);
		return alarmRulesVO;
	}

}
